<?php 
	  $filename = "test.txt"; 
	  $fp=fopen($filename, "w+"); 
	  if (is_writable($filename)) { 
		foreach ($_POST as $k => $value) {
			fwrite($fp,$value.'&'.$k.'@'); //写入删除后的新数组
		}
        fclose($fp);
	  }

?>